package org.wevil.entity.cond;

import org.wevil.entity.pk.PKCondRoleSubject;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import javax.persistence.IdClass;

@Entity
@Getter
@Setter
@EntityListeners(AuditingEntityListener.class)
@IdClass(PKCondRoleSubject.class)
public class CondRoleSubject {
    @Id
    private int roleId;
    @Id
    private int subjectId;
}
